﻿namespace Luka;

/// <summary>
/// 属性注入
/// </summary>
[NotScanned, AttributeUsage(AttributeTargets.Class)]
public sealed class InjectionAttribute : Attribute
{
    /// <summary>
    /// 注入类型
    /// </summary>
    public InjectType Type { get; set; }

    /// <summary>
    /// 构造函数
    /// </summary>
    public InjectionAttribute()
    {
    }

    /// <summary>
    /// 构造函数
    /// </summary>
    public InjectionAttribute(InjectType type = InjectType.ITransient)
    {
        Type = type;
    }
}